import java.util.concurrent.Callable;
import java.util.concurrent.FutureTask;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:龙宝
 * Date:2023-12-01
 * Time:10:40
 */
class MyCallable implements Callable<String> {

    @Override
    public String call() throws Exception {
        System.out.println("哈哈哈哈");
        return "嘻嘻";
    }

}
public class Thread6 {
    public static void main(String[] args) {
        MyCallable c = new MyCallable();
        FutureTask<String> f = new FutureTask<>(c);
        Thread t = new Thread(f);
        t.start();
        System.out.println("111");
    }
}
